<%@ page contentType="text/html; charset=utf-8" %>
<%@ page import="com.fredck.FCKeditor.*"%>
<%@ page import="java.util.Calendar"%>
<%@ page import="java.util.Map"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<HTML>
<HEAD><TITLE>添加产品</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
.c{text-decoration:none;font-size:10 pt;color:#000000}
.d{text-decoration:none;font-size:9 pt;color:#006699}
-->
</STYLE>
<link href="/css/FONT.CSS" rel="stylesheet" type="text/css">
<style type="text/css"> 
	@import url(htmlarea/htmlarea.css); 
	html, body { font-family: Verdana,sans-serif; background-color: #FFFFFF; color: #000; }
	a:link, a:visited { color: #00f; }
	a:hover { color: #048; }
	a:active { color: #f00; }
	textarea { background-color: #DDEEff; border: 1px solid #00000f; }
</style>
<link rel="stylesheet" type="text/css" href="/css/private.css">
<script language=javascript src="/js/private.js"></script>
<script type="text/javascript" src="fckeditor.js"></script>
</head>
<body >
<TABLE ALIGN=CENTER  WIDTH="100%" BORDER="0" cellpadding=6 cellspacing=0>
<TR>
    <TD ALIGN="CENTER" valign="top" height="320"> 

<form name="form1" id="theForm" method="post" enctype="multipart/form-data" action="${webpath}/admin/product/ProductAndAtrribute.do?action=updateProductAndAtrribute" onSubmit="">
        <table align="center" border="1" width="100%" cellspacing=0 cellpadding=0 bgcolor="#FFFFFF">
          <tr align="left"> 
            <td height="26"> 
              <table width="100%" bgcolor="#6699CC" border=0 cellspacing=1 cellpadding=5>
              <tr> 
                  <td align=CENTER height="22"> <font color="WHITE" style="font-size:10.5pt;color:white"> 
                    添加产品相关参数</font>&nbsp;&nbsp;<font style="font-size:10.5pt;color:FF0000">(*) 为必填项</font>					</td>
              </tr>
            </table>
          </td>
        </tr>
          <tr valign="top"> 
            <td height="379"> 
              <table width="100%" bgcolor="#FFFFFF" border=1 cellspacing=0 cellpadding=0 bordercolordark="#EEEEEE" bordercolorlight="#000000"> 				
				<tr>
				  <td align="center" width=254><font style="font-size:9pt;color:#000000">产品咨费</font></td>
				  <td align="left" colspan="3"> &nbsp;
				  <%
				  	String str="",str1="";
					Long atrributeId=1L,atrributeId1=2L;
					Long product_id=(Long)request.getAttribute("product_id");
					if(request.getAttribute("product")!=null)
					{
						Map product=(Map)request.getAttribute("product");
						if(product!=null)
						{
							Map product_pro=(Map)product.get("产品资费");
							if(product_pro!=null)
							{
								str=(String)product_pro.get("atrribute_value");
								atrributeId=(Long)product_pro.get("atrributeId");
							}
							Map product_pro1=(Map)product.get("办理须知");
							if(product_pro!=null)
							{
								str1=(String)product_pro1.get("atrribute_value");
								atrributeId1=(Long)product_pro1.get("atrributeId");
							}
						}
					}
				  %>
			    <% 
					FCKeditor oFCKeditor ; 
					oFCKeditor = new FCKeditor( request, "atrribute_value" ) ; 
					oFCKeditor.setBasePath( "/myproject/" ) ;
					oFCKeditor.setHeight("500");
					oFCKeditor.setValue( str ); 
					out.println( oFCKeditor.create() ) ;
				%>
				<input type="hidden" name="product_id" id="product_id" value="<%=product_id%>" />
				<input type="hidden" name="productleibieID" id="productleibieID" value="<%=(String)request.getAttribute("productleibieID")%>" />
				<input type="hidden" name="page" value="<%=(String)request.getAttribute("page")%>" />
				<input type="hidden" name="atrribute_id" id="atrribute_id" value="<%=atrributeId%>,<%=atrributeId1%>">
				</td>
				</tr>
				<tr>
				  <td align="center" width=254><font style="font-size:9pt;color:#000000">办理须知</font></td>
				  <td align="left" colspan="3"> &nbsp;
			    <% 
					FCKeditor oFCKeditor1 ; 
					oFCKeditor1 = new FCKeditor( request, "atrribute_value1" ) ; 
					oFCKeditor1.setBasePath( "/myproject/" ) ;
					oFCKeditor1.setHeight("500");
					oFCKeditor1.setValue( str1 ); 
					out.println( oFCKeditor1.create() ) ;
				%>
				
				</td>
				</tr>
				<tr> 
                  <td align="CENTER" colspan="4" height="45"> 
                    <input type="submit" name="Submit" class="c" value="完 成" >
                    <input type="reset" name="Reset" class="c" value=" 重 置 ">
					<input type="button" value=" 返回 " class="c" name="Button3" onClick="javascript:history.go(-1);">
					</td>
                </tr>
              </table>
          </td>
        </tr>
      </table>    
</form>
<TR>
<TD >&nbsp; 
</TD>
</TR>
</TABLE>
</BODY>
</HTML>